﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrokerBase.Lib.Product;

namespace Broker.View.Comm
{
    public class ProductViewRight
    {
        public static IProduct Product { get; set; }

        public static bool  IsClient
        {
            get{return LibGlobal.AppType==AppType.Business;}
        }

        public bool IsEnable 
        { 
            get{return !IsClient && !Product.IsCheck;}
        }


        public bool IsReadOnly
        {
            get { return IsClient || Product.IsCheck; }
        }
    }
}
